package com.train.daily.resp.seat;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * DailyTrainSeatPageResp
 * @author baitiaojun
 * @createDate 2025-03-01 23:55:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DailyTrainSeatPageResp {

    /**
     * id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 日期
     */
    private LocalDate date;
    /**
     * 车次编号
     */
    private String trainCode;
    /**
     * 箱序
     */
    private Integer carriageIndex;
    /**
     * 排号|01, 02
     */
    private String row;
    /**
     * 列号|枚举[SeatColEnum]
     */
    private String col;
    /**
     * 座位类型|枚举[SeatTypeEnum]
     */
    private String seatType;
    /**
     * 同车箱座序
     */
    private Integer carriageSeatIndex;
    /**
     * 售卖情况|将经过的车站用01拼接，0表示可卖，1表示已卖
     */
    private String sell;
    /**
     * 新增时间
     */
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
}
